import config from '../config/config';
import request from '../utils/request';

let service = {};

//红包领取记录
service.getredpackage= (param, cb) => {
  param = param || {};

  let requestUrl = config.api.getredpackage;
  request({
    url: requestUrl,
    // showLoading: true,
    data: param,
    method: 'GET',
    success: res => {
      cb(res);
    }
  });
}

//贝壳领取记录
service.conchlist = (param, cb) => {
  param = param || {};

  let requestUrl = config.api.conchlist;
  request({
    url: requestUrl,
    // showLoading: true,
    data: param,
    method: 'GET',
    success: res => {
      cb(res);
    }
  });
}

module.exports = service;